import { ElNotification } from 'element-plus'


export const notificationSuccess = (message, title = '成功') => {
    ElNotification.success({
        title: title,
        message: message,
        showClose: true,
        customClass: 'notification-wrapper',
    })
}

export const notificationWarning = (message, title = '请注意') => {
    ElNotification({
        title: title,
        type: 'warning',
        message: message,
        showClose: true,
        customClass: 'notification-wrapper',
    })
}

export const notificationError = (message, title = '错误') => {
    ElNotification({
        title: title,
        type: 'error',
        message: message,
        showClose: true,
        customClass: 'notification-wrapper',
    })
}

export const notification = (message, title = '信息') => {
    ElNotification({
        title: title,
        message: message,
        showClose: true,
        customClass: 'notification-wrapper',
    })
}